<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增便民电话列表')" />
</head>
<body class="white-bg">
    <h3>新增便民电话信息</h3>
<!--    <a class="btn btn-danger btn-rounded btn-sm" th:href="@{/system/people}">&nbsp;返回上级</a>-->
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-people-add">
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">id：</label>
                <div class="col-sm-8">
                    <input name="peopleId" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">小区：</label>
                <div class="col-sm-8">
<!--                    <input name="peoplePlot" class="form-control" type="text" required>-->
                    <select name="peoplePlot" class="form-control">
                        <option value="">小区</option>
                        <option>锦绣春天</option>
                        <option>超远小区</option>
                        <option>文苑华庭</option>
                        <option>千喜同业</option>
                    </select>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话类型：</label>
                <div class="col-sm-8">
                    <select name="phoneType" class="form-control m-b" required>
                        <option value="">所有</option>
                        <option>快递物流</option>
                        <option>开锁</option>
                        <option>收废品</option>
                        <option>生活服务</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话名称：</label>
                <div class="col-sm-8">
                    <input name="phoneNames" class="form-control" type="text" placeholder="请输入电话名称" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">电话：</label>
                <div class="col-sm-8">
                    <input name="peoplePhone" class="form-control" type="text" placeholder="请输入电话" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">地址：</label>
                <div class="col-sm-8">
                    <input name="peopleAddress" class="form-control" type="text" placeholder="请输入地址" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "system/people"
        $("#form-people-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-people-add').serialize());
            }
        }
    </script>
</body>
</html>